<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>SECCD - Edita Cita</title>
<link href="<%=request.getContextPath()%>/theme/cssGeneral.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssTexto.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssLink.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssTexto.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssFormulario.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%= request.getContextPath() %>/js/seccd.js"></script>
<SCRIPT>
function volverCita(){
	document.form.action="cita.do?method=listar";
	document.form.submit(); 
}
function buscaHCCita(){
	document.form.action="buscaHCCita.do?method=buscaHCCita";
	document.form.submit(); 
}
function cargarPopup(){
	var method="popupCita";
	var width=445;
	var height=230;
	abrirventanaNoMaximizada("popupCita.do?method="+method, width, height, "popup");

}
</SCRIPT>
</head>
<c:set var="temp1" value="${sessionScope.cartografia}"/>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onLoad="redimensionar()">
<form name="form" method="post">
<table class="contenedorA">
<tr>
	<td height="26" class="texto_celeste_titulo" background="<%=request.getContextPath()%>/images/fondo-imp-email.jpg" style="background-repeat:no-repeat;background-position:right ">
		Agregar Citas - Adm
	</td>
</tr>
<tr>
	<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="10"></td>
</tr>
<tr>
	<td align="left">
	<table class="contenedor">
	<tr>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="85" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="140" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="25" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="95" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="145" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="25" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="100" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
	  <td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="140" height="1"></td>
	  </tr>
    <tr>
      <td colspan="11"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="3"></td>
    </tr>
	<tr>
	  <td class="texto_gris" colspan="11">
	  	<a href="javascript:cargarPopup()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Agregar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="javascript:buscaHCCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hoy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="javascript:buscaHCCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Semana&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="javascript:buscaHCCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="javascript:buscaHCCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<<&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="javascript:buscaHCCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
	  </td>
	 </tr>
	     <tr>
      <td colspan="11"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="3"></td>
    </tr>
	<tr>
	  <td class="texto_gris" colspan="11" align="right">
	  	&nbsp;&nbsp;Sede&nbsp;&nbsp;
		<select name="cboSede" class="seccdSELECT140" onchange="javascript:buscarServicioxEspecialidadxSede()" onclick="javascript:validaBuscarEspecialidadxSede()">
			<c:forEach items="${sessionScope.LISTA_SEDES}" var="sedes" varStatus="status">
			<option value='<c:out value="${sedes.codigo}"/>'
			<c:if test="${sedes.codigo== tempSede}" >selected</c:if>
			>
				<c:out value="${sedes.nombre}"/>
			</option>
			</c:forEach>
		</select>
		&nbsp;&nbsp;Especialidad&nbsp;&nbsp;
		<select name="cboEspecialidad" class="seccdSELECT140"  onchange="javascript:buscarServicioxEspecialidadxSede()" onclick="javascript:validaBuscarEspecialidadxSede()">
			<c:forEach items="${sessionScope.LISTA_ESPECIALIDADES}" var="especialidades" varStatus="status">
			<option value='<c:out value="${especialidades.codigo}"/>'
			<c:if test="${especialidades.codigo== tempEspecialidad}" >selected</c:if>
			>
				<c:out value="${especialidades.nombre}"/>
			</option>
			</c:forEach>
		</select>
		&nbsp;&nbsp;Sillon&nbsp;&nbsp;
		<select name="cboSillon" class="seccdSELECT140" onchange="javascript:buscarServicioxEspecialidadxSede()" onclick="javascript:validaBuscarEspecialidadxSede()">
			<c:forEach items="${sessionScope.LISTA_SILLONES}" var="sillon" varStatus="status">
			<option value='<c:out value="${sillones.codigo}"/>'
			<c:if test="${sillones.codigo== tempSillon}" >selected</c:if>
			>
				<c:out value="${sillones.nombre}"/>
			</option>
			</c:forEach>
		</select>
	  </td>
	 </tr>
	<tr>
		<td  colspan="11"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="10"></td>
	</tr>
	<tr>
		<td  colspan="11" >
		<table class="contenedorA" border="1" >
	  		<tr class="fondo_celeste" >
				<td width="10%" class="texto_blancoC"><div align="center">Hora</div></td>
				<c:forEach items="${sessionScope.LISTA_SEMANA}" var="semana" varStatus="status">
					<td width="14%" class="texto_blancoC"><c:out value="${semana.nombre}"/></td>
	  			</c:forEach>
	  		</tr>
	  		 <c:forEach items="${sessionScope.LISTA_HORARIOS}" var="horarios" varStatus="status">
		  	  <tr>
			    <td rowspan="2" class="texto_grisC"><c:out value="${horarios.nombre}"/></td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_1}" var="dia1" varStatus="statusDia1">
					<c:out value="${dia1.especialidad}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_2}" var="dia2" varStatus="statusDia2">
					<c:out value="${dia2.especialidad}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_3}" var="dia3" varStatus="statusDia3">
					<c:out value="${dia3.especialidad}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_4}" var="dia4" varStatus="statusDia4">
					<c:out value="${dia4.especialidad}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_5}" var="dia5" varStatus="statusDia5">
					<c:out value="${dia5.especialidad}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_6}" var="dia6" varStatus="statusDia6">
					<c:out value="${dia1.especialidad}"/>
				</c:forEach>
			    </td>
			  </tr>
		  	  <tr>
			    <td rowspan="2" class="texto_grisC"><c:out value="${horarios.nombre}"/></td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_1}" var="dia1" varStatus="statusDia1">
					<c:out value="${dia1.paciente}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_2}" var="dia2" varStatus="statusDia2">
					<c:out value="${dia2.paciente}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_3}" var="dia3" varStatus="statusDia3">
					<c:out value="${dia3.paciente}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_4}" var="dia4" varStatus="statusDia4">
					<c:out value="${dia4.paciente}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_5}" var="dia5" varStatus="statusDia5">
					<c:out value="${dia5.paciente}"/>
				</c:forEach>
			    </td>
			    <td class="texto_gris">
				<c:forEach items="${sessionScope.LISTA_DIA_6}" var="dia6" varStatus="statusDia6">
					<c:out value="${dia6.paciente}"/>
				</c:forEach>
			    </td>
			  </tr>
	  		 </c:forEach>
		</table>
		</td>
	</tr>
	<tr>
		<td  colspan="11"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="10"></td>
	</tr>
	<tr>
		<td colspan="11" align="right" >
		<a href="javascript:volverCita()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:message key="boton.volver"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td>
	</tr>
	<tr>
		<td colspan="11"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="3"></td>
	</tr>	
	</table>
	</td>
</tr>
</table>
</form>
</body>
</html>

